package com.visionet.waveletData.web.entity.business;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.visionet.waveletData.web.entity.IdEntity;
import com.visionet.waveletData.web.entity.JsonDateSerializer;

import javax.persistence.Entity;
import javax.persistence.Table;

import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "s_user_sign")
public class UserSign extends IdEntity implements Serializable {

    private static final long serialVersionUID = 4608763054831055882L;

    private Long userId;
    private Long orgId;
    private Float lastIntegral;
    private Date signDate;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public Float getLastIntegral() {
        return lastIntegral;
    }

    public void setLastIntegral(Float lastIntegral) {
        this.lastIntegral = lastIntegral;
    }

    @JsonSerialize(using = JsonDateSerializer.class)
    public Date getSignDate() {
        return signDate;
    }

    public void setSignDate(Date signDate) {
        this.signDate = signDate;
    }
}
